package edu.cuit.canary.entity.dto;

import edu.cuit.canary.entity.enums.SysUserStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * 系统用户Dto,用于封装查询条件
 */
@Setter
@Getter
public class SysUserDto {
    /**
     * 用户名(模糊查找)
     */
    @Schema(description = "用户名")
    private String username;
    /**
     * 真实名称(模糊查找)
     */
    @Schema(description = "真实姓名")
    private String realName;
    /**
     * 用户状态
     */
    @Schema(description = "用户状态,可选值:NORMAL/DISABLE", defaultValue = "NORMAL")
    private SysUserStatus status;

    /**
     * 页码索引
     */
    @Schema(description = "页码索引", defaultValue = "1")
    private int pageIndex = 1;
    /**
     * 页面大小
     */
    @Schema(description = "页码大小", defaultValue = "1")
    private int pageSize = 10;
}
